package stu.aistar.service;

import com.github.pagehelper.PageInfo;
import stu.aistar.model.pojo.Movie;

import java.util.List;

public interface IMovieService {
    List<Movie> findByConditionals(String name,String city,String area,String cname);

    PageInfo<Movie> findMoviesByPage(String page, String pageSize);

    Integer delMovieById(Integer id);
    Integer showMovieById(Integer id);

    Integer delMoviesByIds(List<Integer> id);

    Integer showMoviesByIds(List<Integer> ids);

    List<Movie> searchMovies(Movie movie);

    PageInfo<Movie> findMoviesByPage(String page, String pageSize, Movie movie);

    Integer saveMovie(Movie movie);

    Movie findMovieIsExist(String name);

    Boolean updateMovieById(Movie movie);

    List<Movie> findByCid(Integer id);

    List<Movie> findAll();

    Movie findByMovieId(Integer id);
}
